XML_Files 	= $(wildcard xml/dataset/*.xml xml/indicator/*.xml)
XSD_File 	= xsd/lodin.xsd
GENERATOR 	= xsl/generateIndicator.xsl
OUTDIR 		= generatedIndicators
INDICATORS	:= $(patsubst xml/indicator/%.xml,$(OUTDIR)/%.ttl,$(wildcard xml/indicator/*.xml))


valid:
	xmllint --noout --schema $(XSD_File) $(XML_Files) 

test	:
	echo $(INDICATORS)	
	
indicators	: $(INDICATORS) $(GENERATOR)

validIndicators	: $(INDICATORS)
	java jena.turtle $(INDICATORS)

	
$(OUTDIR)/%.ttl	: 
	xsltproc -o $@ $(GENERATOR) xml/indicator/$*.xml
	
clean	:
	rm $(OUTDIR)/*
	rmdir $(OUTDIR)